﻿using mds.ServiceInterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ConfigurationWebService
{
    public partial class Edit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        {
            var info = new MdsConfiguration();
            Title.Text = info.Title;
            ConfigContent.Text = info.Content;
            //InfoId.Value = info.ConfigID.ToString();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            var info = new MdsConfiguration();
            info.Title = Title.Text;
            info.Content = ConfigContent.Text;
            //info.ConfigID=Convert.ToInt32(InfoId.Value);
        }
    }
}